//
//  UIAdapterHelper.m
//  meishangBusiness
//
//  Created by Rui on 15/4/3.
//  Copyright (c) 2015年 xingheng. All rights reserved.
//

#import "UIAdapterHelper.h"

@implementation UIAdapterHelper

+(CGFloat)retnFontSize{
    
    CGFloat size;
    if(k4Inch){
        
        size = 14;
        
    }else if(k35Inch){
        
        size = 14;
        
    }else if(k55Inch){
        
        size = 14;
    }
    else{
        size = 14;
    }
    return size;
}

//返回不同屏幕尺寸头像图片大小
+(NSString*)returnHeadImageSize{
    
    NSString *str;
    if(k4Inch){
        
        str = @"@194w_194h";
        
    }else if(k47Inch){
        
        str = @"@194w_194h";
        
    }else if(k55Inch){
        
        str = @"@228w_228h";
    }
    else if(k35Inch){
        str = @"@194w_194h";
    }
    return str;
}

//返回不同屏幕尺寸头像图片大小
+(NSString*)returnHeadImageSizeNew{
    
    NSString *str;
    
    
    str = [NSString stringWithFormat:@"@%.0fw_%.0fh",kUIScreenWidth*2 , kUIScreenWidth*2];
    return str;
}

//返回不同屏幕尺寸背景图片大小
+(CGFloat)returnHeadbgSize{
    
    CGFloat size;
    if(k4Inch){
        
        size = 160;
        
    }else if(k47Inch){
        
        size = 160;
        
    }else if(k55Inch){
        
        size = 160;
    }
    else if(k35Inch){
        size =  120;
    }
    return size;
}

//头像按钮大小
+(CGFloat)returnHeadPhotoSize{
    
    CGFloat size;
    if(k4Inch){
        
        size = 97;
        
    }else if(k47Inch){
        
        size = 97;
        
    }else if(k55Inch){
        
        size = 114;
    }
    else if(k35Inch){
        size =  70;
    }
    
    return size;
}

//标题背景高度大小
+(CGFloat)returnTitleBgSize{
    CGFloat size;
    
    if(k4Inch){
        
        size = 35;
        
    }else if(k47Inch){
        
        size = 35;
        
    }else if(k55Inch){
        
        size = 35;
    }
    else{
        size = 35;
    }
    return size;
}

@end